﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MapInfo/MapInfo.master" AutoEventWireup="true"
    CodeFile="ProsStandard.aspx.cs" Inherits="MapInfo_ProfessionalTeam_ProsStandard"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>专业队伍类型：<asp:DropDownList ID="ddlProsType" runat="server" AutoPostBack="True"
            DataTextField="TypeName" DataValueField="Id" OnSelectedIndexChanged="ddlProsType_SelectedIndexChanged">
        </asp:DropDownList>
        </li>
    </ul>
    <table class="intable" width="100%">
        <caption>
            <span>人数标准</span>
        </caption>
        <tr>
            <td style="width: 10%">
                人数：
            </td>
            <td style="width: 71px">
                
                <asp:TextBox ID="txtSoldiersCount" runat="server" Width="71px"></asp:TextBox>
                
            </td>
        </tr>
        <tr>
            <td style="width: 10%; height: 8px;">
            </td>
            <td style="width: 71px; height: 8px;">
                
                <asp:Button ID="btnSave3" runat="server" onclick="btnSave3_Click" Text="保存" />
                
            </td>
        </tr>
    </table>
    <table class="intable" width="100%">
        <caption>
            <span>添加车辆标准</span>
        </caption>
        <tr>
            <td style="width: 10%">
                车辆类别：
            </td>
            <td style="width: 71px">
                <asp:DropDownList ID="ddlVehicleClass" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 10%">
                数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 量：
            </td>
            <td style="width: 71px">
                <asp:TextBox ID="txtVehicleCount" runat="server" Width="65px"></asp:TextBox>
            </td>
            <td>
               
            </td>
        </tr>
        <tr>
            <td style="width: 10%">
                &nbsp;
            </td>
            <td style="width: 71px">
                <asp:Button ID="bntSave1" runat="server" Text="保存" OnClick="bntSave1_Click" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" Caption="&lt;span&gt;车辆标准列表&lt;/span&gt;"
        DataKeyNames="Id" OnRowDataBound="UserGrid_RowDataBound" OnRowCommand="GridView1_RowCommand">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="类别">
                <ItemTemplate>
                    <asp:Label runat="server" ID="DeviceClass"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="数量">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblCount"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton runat="server" CommandArgument='<%# Eval("id") %>' ID="lkbDel" CommandName="Del"
                        OnClientClick="return confirm('是否真的删除?')" Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Right" />
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <table class="intable" width="100%">
        <caption>
            <span>添加装备标准</span>
        </caption>
        <tr>
            <td style="width: 10%">
                装备类别：
            </td>
            <td style="width: 71px">
                <asp:DropDownList ID="ddlDeviceClass" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 10%">
                配&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 备：
            </td>
            <td style="width: 71px">
                <asp:TextBox ID="txtDeviceCount" runat="server" Width="65px"></asp:TextBox>
            </td>
            <td>
                <asp:RadioButtonList ID="rblDeviceUnit" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="0">/人</asp:ListItem>
                    <asp:ListItem Value="1">/组</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td style="width: 10%">
                备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 份：</td>
            <td style="width: 71px">
                <asp:TextBox ID="txtDeviceCount0" runat="server" Width="65px"></asp:TextBox>
            </td>
            <td>
                <asp:RadioButtonList ID="rblDeviceUnit0" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="0">/人</asp:ListItem>
                    <asp:ListItem Value="1">/组</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td style="width: 10%">
                &nbsp;
            </td>
            <td style="width: 71px">
                <asp:Button ID="bntSave2" runat="server" Text="保存" OnClick="bntSave2_Click" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:GridView ID="GVDevice" runat="server" AutoGenerateColumns="False" Caption="<span>装备列表</span>"
        DataKeyNames="Id" OnRowCommand="GVDevice_RowCommand" OnRowDataBound="GVDevice_RowDataBound">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="类别">
                <ItemTemplate>
                    <asp:Label runat="server" ID="DeviceClass"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配备数量">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblCount"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="备份数量">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblCount0"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton runat="server" CommandArgument='<%# Eval("id") %>' ID="lkbDel" CommandName="Del"
                        OnClientClick="return confirm('是否真的删除?')" Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Right" />
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" runat="server" OnPageSizeChange="ListPageContral1_PageSizeChange" />
</asp:Content>
